$(function() {

	$(document).on("click","#subSearch",function(e){
		var loading = layer.msg('加载中...', {icon: 16});
		var  param = $(".search").val();
		var search = $("#inquery_list_form");
		$.get(search[0].action,search.serialize(),
			function(data){
				$(':input',search).not(':button, :submit, :reset, :hidden').val(''); 
			}).error(function(data) {
			    alert("请求失败！")
			}).success(function(data) {
				if(param == ""){
					window.location.href=jumpUrl;
				}else{
					window.location.href=jumpUrl+'?q='+param;
				}
				layer.close(loading);
			});
		stopDefault(e);
	})
});